package com.xzer.xiaozhuoerinterface.mapper;


import com.xzer.xiaozhuoerinterface.entity.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface InfoMapper {
    void UpLoadInfo(PerInfo perInfo);
    List<PerInfo> getAllInfo();
    String getCreditRate(String idCardNum);
    void deleteInfoFromId(String idCardNum);
    void updateLoginCredit(String fullname, int credit);
    void updateLoginFullnameAndCredit(String name, String fullname, int credit);
    int reg(LoginInfo loginInfo);
    int insertCredit(Credit credit);
    LoginInfo login(LoginInfo loginInfo);
    PlatInfo getShareBikeLimit(String platType);
    PlatInfo getShareCarLimit(String platType);
    PlatInfo getCreditLimit(String platType);
    Integer getCreditRateByUsername(String username);
    Integer getCreditRateByIdCardNum(String idCardNum);
    void updateCreditRate(String name, int credit);
    Integer getDriverCardByUsername(String username);
    Integer getIdCardTableInfo(String username);
    int insertIdCardTable(Idcardtable idcardtable);
    int insertDriverTable(DriverTable driverTable);
    Integer getDriverTableId(String name);
    void updateDriverTable(DriverTable driverTable);
    void deleteDriverTable(String name);
    void deleteCarTable(String carNum);
    void deleteAllCarTable(String fullname);
    void deleteBankCardTable(String bankcardnum);
    List<BankCardTable> getBankCardTable(String idcardnum);
    List<CarTable> getCarTable(String username);
    DriverTable getDriverTable(String name);
    Idcardtable getIdCardTable(String username);
    int insertCarTable(CarTable carTable);
    void uploadBankCardData(BankCardTable bankCardTable);
    int insertBankCardTable(BankCardTable bankCardTable);
    int selectBankCredit(String bankcardnum);
    int selectBank(String bankcardnum);
}
